package com.erb.service.hzg.impl;

import com.erb.entity.*;
import com.erb.mapper.LoanUserMapper;
import com.erb.service.hzg.LoanUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LoanUserServiceImpl implements LoanUserService {
	@Resource
	LoanUserMapper dao;

	@Override
	public LoanUser lulist(int id) {
		return dao.lulist(id);
	}

	@Override
	public void addrelat(LoanUser loanUser) {
		dao.addrelat(loanUser);
	}

	@Override
	public void addidcard(String identity, int autonym, int id) {
		dao.updidcard(identity, autonym, id);
	}

	@Override
	public void addbank(LoanBankcard bankcard) {
		dao.addbank(bankcard);
	}

	@Override
	public List<LoanBankcard> banklist(int id) {
		return dao.banklist(id);
	}

	@Override
	public void updbankst(int autonym, int id) {
		dao.updbankst(autonym, id);
	}

	@Override
	public void delbankst(int id) {
		dao.delbankst(id);
	}

	@Override
	public int setcarinfo(int id) {
		return dao.setcarinfo(id);
	}

	@Override
	public int setcard(int id) {
		return dao.setcard(id);
	}

	@Override
	public int sethouseinfo(int id) {
		return dao.sethouseinfo(id);
	}

	@Override
	public List<Carimf> carlist(int id) {
		return dao.carlists(id);
	}

	@Override
	public void addgrCar(Carimf carimf) {
		dao.addgrCar(carimf);
	}

	@Override
	public void delgrcar(int id) {
		dao.delgrcar(id);
	}

	@Override
	public void addgrHouse(Houseimf houseimf) {
		dao.addgrHouse(houseimf);
	}

	@Override
	public void delgrHouse(int id) {
		dao.delgrHouse(id);
	}

	@Override
	public List<Houseimf> Houselist(int id) {
		return dao.Houselist(id);
	}

	@Override
	public void updassess(int assessstate, int id) {
		dao.updassess(assessstate, id);
	}

	@Override
	public int selcarProcount(int id) {
		return dao.selcarProcount(id);
	}

	@Override
	public List<Carimf> selcarApplyPage(Pager Pager, int id) {
		return dao.selcarApplyPage((Pager.currPage - 1) * Pager.pageSize, Pager.pageSize, id);
	}

	@Override
	public int selbankProcount(int id) {
		return dao.selbankProcount(id);
	}

	@Override
	public List<LoanBankcard> selbankApplyPage(Pager Pager, int id) {
		return dao.selbankApplyPage((Pager.currPage - 1) * Pager.pageSize, Pager.pageSize, id);
	}

	@Override
	public int selhouseProcount(int id) {
		return dao.selhouseProcount(id);
	}

	@Override
	public List<Houseimf> selhouseApplyPage(Pager Pager, int id) {
		return dao.selhouseApplyPage((Pager.currPage - 1) * Pager.pageSize, Pager.pageSize, id);
	}

	@Override
	public int updPwd(String Pwd, int id) {
		//添加银行卡密码
		return dao.updPwd(Pwd, id);
	}

	@Override
	public void addbankmony(double Limit, int uid) {
		dao.addbankmony(Limit, uid);
	}

	@Override
	public List<LoanBankcard> showbankn(String bankn, int luid) {
		return dao.showbankn(bankn, luid);
	}

	@Override
	public LoanBankcard showbanknMoney(String bankn, int luid) {
		return dao.showbanknMoney(bankn, luid);
	}
}
